package com.example.demojava.service;

import com.example.demojava.entity.FileInfo;
import org.springframework.web.multipart.MultipartFile;

public interface FileService {
    FileInfo initUpload(String fileName, String fileHash, Long totalSize);

    FileInfo uploadChunk(String fileHash, Long chunkNumber, MultipartFile chunk);

    FileInfo getUploadProgress(String fileHash);

    void completeUpload(String fileHash);
}